Optimal. Leaf size=89 \[ \frac{x \left (a+\frac{d (c d-b e)}{e^2}\right )}{d \sqrt{d+e x^2}}-\frac{(3 c d-2 b e) \tanh ^{-1}\left (\frac{\sqrt{e} x}{\sqrt{d+e x^2}}\right )}{2 e^{5/2}}+\frac{c x \sqrt{d+e x^2}}{2 e^2} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0726533, antiderivative size = 89, normalized size of antiderivative = 1., number of steps used = 4, number of rules used = 4, integrand size = 24, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.167, Rules used = {1157, 388, 217, 206} \[ \frac{x \left (a+\frac{d (c d-b e)}{e^2}\right )}{d \sqrt{d+e x^2}}-\frac{(3 c d-2 b e) \tanh ^{-1}\left (\frac{\sqrt{e} x}{\sqrt{d+e x^2}}\right )}{2 e^{5/2}}+\frac{c x \sqrt{d+e x^2}}{2 e^2} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 1157
Rule 388
Rule 217
Rule 206
Rubi steps
\begin{align*} \int \frac{a+b x^2+c x^4}{\left (d+e x^2\right )^{3/2}} \, dx &=\frac{\left (a+\frac{d (c d-b e)}{e^2}\right ) x}{d \sqrt{d+e x^2}}-\frac{\int \frac{\frac{d (c d-b e)}{e^2}-\frac{c d x^2}{e}}{\sqrt{d+e x^2}} \, dx}{d}\\ &=\frac{\left (a+\frac{d (c d-b e)}{e^2}\right ) x}{d \sqrt{d+e x^2}}+\frac{c x \sqrt{d+e x^2}}{2 e^2}-\frac{(3 c d-2 b e) \int \frac{1}{\sqrt{d+e x^2}} \, dx}{2 e^2}\\ &=\frac{\left (a+\frac{d (c d-b e)}{e^2}\right ) x}{d \sqrt{d+e x^2}}+\frac{c x \sqrt{d+e x^2}}{2 e^2}-\frac{(3 c d-2 b e) \operatorname{Subst}\left (\int \frac{1}{1-e x^2} \, dx,x,\frac{x}{\sqrt{d+e x^2}}\right )}{2 e^2}\\ &=\frac{\left (a+\frac{d (c d-b e)}{e^2}\right ) x}{d \sqrt{d+e x^2}}+\frac{c x \sqrt{d+e x^2}}{2 e^2}-\frac{(3 c d-2 b e) \tanh ^{-1}\left (\frac{\sqrt{e} x}{\sqrt{d+e x^2}}\right )}{2 e^{5/2}}\\ \end{align*}
Mathematica [A] time = 0.107454, size = 98, normalized size = 1.1 \[ \frac{\sqrt{e} x \left (2 e (a e-b d)+c d \left (3 d+e x^2\right )\right )-d^{3/2} \sqrt{\frac{e x^2}{d}+1} (3 c d-2 b e) \sinh ^{-1}\left (\frac{\sqrt{e} x}{\sqrt{d}}\right )}{2 d e^{5/2} \sqrt{d+e x^2}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.007, size = 112, normalized size = 1.3 \begin{align*}{\frac{c{x}^{3}}{2\,e}{\frac{1}{\sqrt{e{x}^{2}+d}}}}+{\frac{3\,cdx}{2\,{e}^{2}}{\frac{1}{\sqrt{e{x}^{2}+d}}}}-{\frac{3\,cd}{2}\ln \left ( x\sqrt{e}+\sqrt{e{x}^{2}+d} \right ){e}^{-{\frac{5}{2}}}}-{\frac{bx}{e}{\frac{1}{\sqrt{e{x}^{2}+d}}}}+{b\ln \left ( x\sqrt{e}+\sqrt{e{x}^{2}+d} \right ){e}^{-{\frac{3}{2}}}}+{\frac{ax}{d}{\frac{1}{\sqrt{e{x}^{2}+d}}}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F(-2)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: ValueError} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 4.29752, size = 552, normalized size = 6.2 \begin{align*} \left [-\frac{{\left (3 \, c d^{3} - 2 \, b d^{2} e +{\left (3 \, c d^{2} e - 2 \, b d e^{2}\right )} x^{2}\right )} \sqrt{e} \log \left (-2 \, e x^{2} - 2 \, \sqrt{e x^{2} + d} \sqrt{e} x - d\right ) - 2 \,{\left (c d e^{2} x^{3} +{\left (3 \, c d^{2} e - 2 \, b d e^{2} + 2 \, a e^{3}\right )} x\right )} \sqrt{e x^{2} + d}}{4 \,{\left (d e^{4} x^{2} + d^{2} e^{3}\right )}}, \frac{{\left (3 \, c d^{3} - 2 \, b d^{2} e +{\left (3 \, c d^{2} e - 2 \, b d e^{2}\right )} x^{2}\right )} \sqrt{-e} \arctan \left (\frac{\sqrt{-e} x}{\sqrt{e x^{2} + d}}\right ) +{\left (c d e^{2} x^{3} +{\left (3 \, c d^{2} e - 2 \, b d e^{2} + 2 \, a e^{3}\right )} x\right )} \sqrt{e x^{2} + d}}{2 \,{\left (d e^{4} x^{2} + d^{2} e^{3}\right )}}\right ] \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A] time = 7.82472, size = 134, normalized size = 1.51 \begin{align*} \frac{a x}{d^{\frac{3}{2}} \sqrt{1 + \frac{e x^{2}}{d}}} + b \left (\frac{\operatorname{asinh}{\left (\frac{\sqrt{e} x}{\sqrt{d}} \right )}}{e^{\frac{3}{2}}} - \frac{x}{\sqrt{d} e \sqrt{1 + \frac{e x^{2}}{d}}}\right ) + c \left (\frac{3 \sqrt{d} x}{2 e^{2} \sqrt{1 + \frac{e x^{2}}{d}}} - \frac{3 d \operatorname{asinh}{\left (\frac{\sqrt{e} x}{\sqrt{d}} \right )}}{2 e^{\frac{5}{2}}} + \frac{x^{3}}{2 \sqrt{d} e \sqrt{1 + \frac{e x^{2}}{d}}}\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.21141, size = 108, normalized size = 1.21 \begin{align*} \frac{1}{2} \,{\left (3 \, c d - 2 \, b e\right )} e^{\left (-\frac{5}{2}\right )} \log \left ({\left | -x e^{\frac{1}{2}} + \sqrt{x^{2} e + d} \right |}\right ) + \frac{{\left (c x^{2} e^{\left (-1\right )} + \frac{{\left (3 \, c d^{2} e - 2 \, b d e^{2} + 2 \, a e^{3}\right )} e^{\left (-3\right )}}{d}\right )} x}{2 \, \sqrt{x^{2} e + d}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]